package sorter;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;

public class Sorter {

	
	/**
	 * Combines the information in one start file and one finnish file and
	 * combines them into a result file.
	 * @param startFilePath The file path for the start file.
	 * @param finnishFilePath The file path for the finnish file.
	 * @param resultDestinationPath The file path where the desired output is to be saved.
	 */
	public void produceResult(String startFilePath, String finnishFilePath, String resultDestinationPath){
			PrintWriter pw;
			try {
				pw = new PrintWriter(new File(resultDestinationPath), "UTF-8");
				pw.println("StartNr; Totaltid; Starttid; Måltid");
				pw.println("1; 1.23.34; 12.00.00; 13.23.34");
				pw.close();

			} catch (FileNotFoundException | UnsupportedEncodingException e) {
				System.err.println("Folder non excistent");
				e.printStackTrace();
			}
	}
}
